package com.yanqu.road.entity.push;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * @Author wpj
 * @Date 2021/4/10
 */
@FieldTypeAnnotation(tableName = "t_u_client_msg_push")
public class ClientPushRecord extends DataObject {

    @FieldTypeAnnotation(select = true, update = true)
    long userId;

    @FieldTypeAnnotation(select = true, update = true)
    int type;

    @FieldTypeAnnotation()
    int times;

    @FieldTypeAnnotation()
    long updateTime;


    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        if (this.times != times) {
            this.times = times;
            setUpdateOption();
        }
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        if ( this.updateTime != updateTime) {
            this.updateTime = updateTime;
            setUpdateOption();
        }
    }
}
